package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * region区域实体类
 *
 * @Name Region
 * @Author 81475
 * @Date 2022-08-13 13:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_region")
public class Region {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonAlias("regionName")
    private String name;
    /**
     * 备注
     */
    private String remark;
}
